package cn.neusoft.edu.his.demo.controller;

import io.swagger.annotations.Api;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.neusoft.edu.his.demo.common.Result;
import cn.neusoft.edu.his.demo.mapper.DoctorFeeMapper;
import cn.neusoft.edu.his.demo.mapper.DoctorMapper;
import cn.neusoft.edu.his.demo.po.Doctor;
import cn.neusoft.edu.his.demo.po.Doctorfee;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@CrossOrigin
@Api("DoctorFeeControlloer相关的api")
@RestController
public class DoctorFeeController {
	@Autowired
	private DoctorFeeMapper doctorfeeMapper;	
	@RequestMapping("/getDoctorFees")
	public Result getDoctorFees(){
		QueryWrapper<Doctorfee> Wrapper = new QueryWrapper<>();
		Wrapper.eq("status",1);//有效状态
		List<Doctorfee> list = doctorfeeMapper.selectList(Wrapper);
		return  Result.ok(list);
	}
}
